<%@ page import="DroidEye.DAO.TeacherDAO" %>
<%@ page import="DroidEye.JavaBean.ApplyBean" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="RightSideBackGroundSetter.jsp"/>
<html>
<head>
    <title>Title</title>
</head>
<body>

<%
    String thisTeacherID = (String) session.getAttribute("ThisTeacherID");
    String project_id=request.getParameter("Parame");
    TeacherDAO teacherDAO = TeacherDAO.getTeacherDAOInstance();
    List<ApplyBean> projectList;
    projectList = teacherDAO.queryProjectGroupByProjectId(project_id);
%>

<center class="pad10">
    <div class="font25 bold pad-bottom10"><center>
        <%
            if (projectList.isEmpty()) {
        %>
        暂时没有学生申报此项目，<a href="TeacherHasLoginTestRight.jsp" class="button-normal">返回</a></center>

        <%
        } else {
        %>
        申报此项目学生如下<br>

    </div>
    <table  class="tablelist" id="tab2">
        <tr>
            <th align="center" valign="middle" width="70px">学生学号</th>
            <th align="center" valign="middle"  width="70px">学生姓名</th>
            <th align="center" valign="middle"  width="70px">项目号</th>
            <th align="center" valign="middle"  width="70px">项目名</th>
            <th align="center" valign="middle">申报内容</th>
            <th align="center" valign="middle">指导内容</th>
            <th align="center" valign="middle"  width="70px">申报进度</th>
            <th align="center" valign="middle"  width="70px">通过状态</th>
            <th align="center" valign="middle"  width="70px">目前总分</th>
            <th align="center" valign="middle" width="60px">目前评<br>审员数</th>
        </tr>
        <%
            for (ApplyBean apply : projectList
                    ) {
        %>
        <tr>
            <td align="center" valign="middle">
                <a href="TeacherTeachProject.jsp?message=<%=apply.getStudentID()%>"><%=apply.getStudentID()%>
                </a>
            </td>
            <td align="center" valign="middle"><%=apply.getStudentName()%>
            </td>
            <td align="center" valign="middle"><%=apply.getProjectID()%>
            </td>
            <td align="center" valign="middle"><%=apply.getProjectName()%>
            </td>
            <td align="center" valign="middle"><%=apply.getProjectContent()%>
            </td>
            <td align="center" valign="middle"><%=apply.getProjectTeach()%>
            </td>
            <td align="center" valign="middle"><%=apply.getProjectProgress()%>
            </td>
            <td align="center" valign="middle"><%=apply.getPassStatus()%>
            </td>
            <td align="center" valign="middle"><%=apply.getProjectTotalScore()%>
            </td>
            <td align="center" valign="middle"><%=apply.getAdjuNumber()%>
            </td>
        </tr>
        <%
                }
            }
        %>
    </table>
    <div class="font18 pad10">
        （点击学生学号可为其添加辅导内容）
    </div>
</center>
</body>
</html>
